package com.web.java0324mybatis.entity;

import java.util.List;

/**
 * @author
 * @Description
 * @Date 2025/3/24 16:46
 */
public class Department {
    private int id;
    private String dName;
    private int dNum;
    private List<Staffer> staffers;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public int getdNum() {
        return dNum;
    }

    public void setdNum(int dNum) {
        this.dNum = dNum;
    }

    public List<Staffer> getStaffers() {
        return staffers;
    }

    public void setStaffers(List<Staffer> staffers) {
        this.staffers = staffers;
    }

    @Override
    public String toString() {
        return "Department{" +
                "id=" + id +
                ", dName='" + dName + '\'' +
                ", dNum=" + dNum +
                ", staffers=" + staffers +
                '}';
    }
}
